import request from '@/utils/request'
// 获取列表
export function getPicModelList(params) { //查询图片模板列表
  return request({
    url: '/pictureModel/list',
    method: 'get',
    params
  })
}

export function getPicModelData(params) {  //根据Id获取图片模板内容接口
  return request({
    url: '/pictureModel',
    method: 'get',
    params
  })
}

export function createPicModel(params) {  //新增图片模板
  return request({
    url: '/pictureModel/insert',
    method: 'post',
    data: params
  })
}

export function updatePicModel(params) {  //修改图片模板内容
  return request({
    url: '/pictureModel/update',
    method: 'post',
    data: params
  })
}

export function deletePicModel(params) {
  return request({
    url: '/pictureModel/delete',
    method: 'post',
    params
  })
}
